// type CaklFn = (n1: number, n2: number) => number

interface CaklFn {
    (n1:number, n2: number): number
}

const add: CaklFn = (a, b) => {
    return a + b
}

function calc(num1: number, num2: number, CaklFn: CaklFn) {
    return CaklFn(num1, num2)
}

calc(20, 30, add)